package io.renren.modules.app.mapper;

import io.renren.modules.app.entity.UserRegistrationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ClassName: ExamineMapper
 * Package: io.renren.modules.app.mapper
 * Description:
 *
 * @Author zzy
 * @Create 2024/4/22 20:39
 * @Version 1.0
 */
@Mapper
public interface ExamineMapper {
    @Select("SELECT number FROM user_examine order by Creation_time desc LIMIT 1")
    Integer getRandomExamNumber();

    @Select("SELECT question_number FROM user_test_question WHERE exam_number = #{examId}")
    List<Long> getQuestionNumbersForExam(Integer examId);
}